// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '项目维护',
        name: 'project_maintenance',
        url: "/project_maintenance/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"code":"","name":"","way":"","value_type":"","standard_of_criterion":""};
    const editFormOptions = [[{"title":"编码","field":"code"}],
                              [{"title":"名称","field":"name"}],
                              [{"dataKey":"检验方式","data":[],"title":"检验方式","field":"way","type":"select"}],
                              [{"dataKey":"值类型","data":[],"title":"值类型","field":"value_type","type":"radio"}],
                              [{"title":"判定基准","field":"standard_of_criterion"}]];
    const searchFormFields = {"code":"","name":"","standard_of_criterion":""};
    const searchFormOptions = [[{"title":"编码","field":"code","type":"="},{"title":"名称","field":"name","type":"like"},{"title":"判定基准","field":"standard_of_criterion","type":"like"}]];
    const columns = [{field:'id',title:'主建',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'code',title:'编码',type:'string',width:220,align:'left'},
                       {field:'name',title:'名称',type:'string',width:120,align:'left'},
                       {field:'way',title:'检验方式',type:'string',bind:{ key:'检验方式',data:[]},width:120,align:'left'},
                       {field:'value_type',title:'值类型',type:'string',bind:{ key:'值类型',data:[]},width:120,align:'left'},
                       {field:'standard_of_criterion',title:'判定基准',type:'string',width:120,align:'left'},
                       {field:'createdusername',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'createdtime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'updatetime',title:'修改时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'updateusername',title:'修改人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'one',title:'扩展字段1',type:'string',width:220,hidden:true,align:'left'},
                       {field:'two',title:'扩展字段2',type:'string',width:220,hidden:true,align:'left'},
                       {field:'three',title:'扩展字段3',type:'string',width:220,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}